package com.dlyk.mapper;

import com.dlyk.commons.DataScope;
import com.dlyk.model.Clue;
import com.dlyk.query.BaseQuery;
import com.dlyk.result.ChartData;

import java.util.List;

public interface ClueMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Clue record);

    int insertSelective(Clue record);

    Clue selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Clue record);

    int updateByPrimaryKey(Clue record);

    @DataScope(tableAlias = "c", tableField = "owner_id")
    List<Clue> selectClueListByPage(BaseQuery build);

    void insertClueList(List<Clue> cachedDataList);

    int selectCountByPhone(String phone);

    Clue selectClueDetailById(Integer id);

    int updateClueStateById(Integer id);

    int selectClueTotalCount();

    List<ChartData> selectClueSourceCount();

    int deleteClueByIds(List<String> ids);
}

